Skip to content

Chat: select several chats and delete them together; no empty band in the yes/no dialog - #434

Merged
nambok merged 1 commit into
mainfrom
chat-bulk-delete
Nov 16, 2026
Merged

nambok merged 1 commit into
mainfrom
chat-bulk-delete

Conversation

@nambok

@nambok nambok commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Lets you select several chats in the chat list and delete them together. Also fixes the empty band in the shared yes/no dialog ("Delete this chat?" and the other confirm dialogs that use it).

Needs CoderHelm/coderhelm-platform#728 (POST /api/brain/threads/delete) deployed first.

Changes

  • Select mode in the chat list. There are four ways in: "Select" beside the search box, "Select" in a chat's menu, Shift-click, or Cmd-click / Ctrl-click on a chat.
    • Each of your chats gets a labelled checkbox. Teammates' shared chats get none.
    • "Select all" picks only the chats the search shows. Shift-click on a checkbox picks the run of chats from the last one picked.
    • A live count shows how many are selected. Cancel and Delete sit at the foot of the list and stay on screen while the list scrolls, including inside the phone menu.
    • Escape leaves select mode without closing the phone menu, and leaves an open dialog alone.
  • Delete asks once in the shared confirm dialog ("Delete 3 chats?" ... "This can't be undone."), then sends one request.
    • If the open chat was deleted, you land on a new chat.
    • If some deletes fail, those chats stay selected and the toast says how many failed.
  • Shared dialog fix (Modal). An empty body is no longer drawn, and the title row drops its rule when there is no body, so the text is followed by at most one rule and then the buttons. The confirm dialog now uses the sheet layout: on a phone it is a short sheet at the bottom of the screen instead of a full, mostly empty screen. This applies to every useConfirm question.

Verification

  • New e2e/chat-bulk-delete.spec.ts, with every API call mocked. It covers:
    • selecting several and deleting them
    • Cancel
    • Select all with a search
    • Shift-click, Cmd-click and the menu item
    • Escape
    • deleting the open chat
    • partial failure, then a retry
    • the dialog having no empty bordered band (single and bulk; this check fails on main with a 36px empty body)
    • 390px: no sideways scroll, buttons on screen, Escape keeps the menu open
  • npm run typecheck, npm run lint, and the full e2e suite against the static build: every spec passed (1 skipped).

… the yes/no dialog

The chat list gets a select mode: Select by the search box, Select in a
chat's menu, or Shift-click / Cmd-click on a chat. Checkboxes are labelled
inputs, Select all takes what the search shows, Cancel and Delete stay on
screen, Escape leaves. Delete asks once and sends one request to
POST /api/brain/threads/delete; failed chats stay selected.

The shared Modal no longer draws an empty body between two rules, and the
confirm dialog is a short sheet on a phone.
@nambok
nambok merged commit febde7f into main Nov 16, 2026
10 checks passed
@nambok
nambok deleted the chat-bulk-delete branch November 16, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant